let bodyParser = require('body-parser');
let express = require('express');
let path = require('path')
let { ROOT, STATICS } = require('./index')
module.exports = app => {

    // 静态化   
    for(let key in STATICS) {
        app.use(key, express.static(path.join(ROOT, STATICS[key])))
    }
    // 配置引擎
    app.engine('.html', require('ejs').__express)
}